package middleware

import (
	"lib/mall/v1/lib"
)

var middlewares []lib.ContextOptionFunc

func init() {
	middlewares = append(middlewares, ErrorMiddleware)
	middlewares = append(middlewares, AuthMiddleware)
}

func GetMiddlewares() []lib.ContextOptionFunc {
	return middlewares
}
